package com.vhall.component.entity.goods.goods;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author guoxin.wang
 * @date 2021/10/26
 */
@Data
public class GoodsApiBindListReqVO implements Serializable {

    private static final long serialVersionUID = 1878905862783682062L;

    /**
     * 名称或者id
     */
    @NotBlank(message = "room_id参数不允许为空！")
    @ParamName("room_id")
    private String roomId;

    /**
     * 名称或者id
     */
    @ParamName("keyword")
    private String keyword;

    /**
     * 页码
     */
    @ParamName("page")
    @Min(value = 1, message = "page参数不允许小于1！")
    private Integer page = 1;

    /**
     * 每页数量
     */
    @ParamName("page_size")
    @Min(value = 1, message = "page_size参数不允许小于1！")
    private Integer pageSize = 10;

}
